#include "example.h"

Example::Example()
{
    scr = lv_obj_create(NULL, NULL);
    lv_obj_set_style_local_bg_color(scr, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
	lv_scr_load(scr);

    lv_style_init(&font_style);
	lv_style_set_text_font(&font_style, LV_STATE_DEFAULT, &lv_font_montserrat_28);
	lv_style_set_text_color(&font_style, LV_STATE_DEFAULT, LV_COLOR_WHITE);

    label = lv_label_create(scr, NULL);
	lv_obj_add_style(label, LV_LABEL_PART_MAIN, &font_style);
	lv_label_set_text(label, LV_SYMBOL_EYE_OPEN  " Hello World");
	lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0);
    
    lv_task_handler();
}

Event Example::main_process(Action)
{
    return NOEVENT;
}

Example::~Example()
{
    lv_obj_del(scr);
}